<?php
class commentController extends Controller
{
    function showIndex()
    {
        // TODO: Implement showIndex() method.
    }

    public function add()
    {
        if ($this->checkIsLogin() && !$this->isAdmin() && $this->_post['content'] != "") {
            $this->modules->Comment->insert($this->_post);
        }
        Boot::redirect($_POST['backUrl']);
    }
}

?>